package com.until;

import java.io.PrintWriter;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


    
    public class Hello3 extends HttpServlet{
        //处理get请求
        public void doGet(HttpServletRequest req, HttpServletResponse res){
            //业务逻辑
            try{
                PrintWriter pw = res.getWriter();
                pw.println("hello, Http");
            }
            catch (Exception e){
                e.printStackTrace();
            }
        }

        public void doPost(HttpServletRequest req, HttpServletResponse res){
            this.doGet(req,res);    
        }
    }


